Repository navigation
media: bcm2835-codec: Increase video callbacks limit - #4658
popcornmix wants to merge 1 commit into
Conversation
The previous commit limited callbacks to DPB+5. This has been found insufficient for kodi and ffmpeg decoding h.264. Increase to DPB+6 Fixes: f814bfc Signed-off-by: Dom Cobley <popcornmix@gmail.com>
|
See discussion here It is possibly 7 may be needed, but lets wait and see. Ping @jc-kynesim @6by9 |
|
@popcornmix I'm getting the same issue as before when I apply https://patch-diff.githubusercontent.com/raw/raspberrypi/linux/pull/4658.patch to Top of tree rpi-5.15.y. Trying a rebuild with |
|
No luck even with it set to 7. FYI vc-log gives me this: Removing the |
|
@satmandu what does vcgencmd version report? |
|
Ah I have the default ubuntu firmware... |
|
With the newest firmware... I get this from vc-log: And still the same breakage with no video to display. |
|
@6by9 does a colourspace change cause a format change event? If so I'm going to guess that that is a ffmpeg without proper support for that. |
Yes it does as it is part of the V4L2 format. |
|
If I need to be trying this with an ffmpeg binary built from raspi-os 64-bit that's fine too... If someone can point me to the dsc file so I can rebuild that for ubuntu... |
|
I'm not sure this will even have been fixed in Raspberry Pi OS, but I haven't seen issues. https://github.com/FFmpeg/FFmpeg/blob/master/libavcodec/v4l2_context.c#L195 does not follow the specification given in https://www.kernel.org/doc/html/latest/userspace-api/media/v4l/dev-decoder.html#dynamic-resolution-change.
If neither of those is done (actually the codec doesn't support V4L2_DEC_CMD_START at present), then decode will be stopped waiting for it to happen. |
|
No longer needed as "media: bcm2835-codec: Limit video callbacks" has been reverted. |
The previous commit limited callbacks to DPB+5.
This has been found insufficient for kodi and ffmpeg
decoding h.264. Increase to DPB+6
Fixes: f814bfc
Signed-off-by: Dom Cobley popcornmix@gmail.com